package org.yzl.designPatterns.factorymethod.moreFactory;

import org.yzl.designPatterns.factorymethod.moreFactory.impl.MailSenderImpl;
import org.yzl.designPatterns.factorymethod.moreFactory.impl.MessageSenderImpl;

/**
 * 多工厂模式
 */
public class SendFactory {
    public  ISender produceMail(){
        return new MailSenderImpl();
    }
    public  ISender produceMessage(){
        return new MessageSenderImpl();
    }
}
